Game Events
Extension Tools for Unity also allows you to listen to Game Events without having to create a new monobehaviour.
using ExtensionsTools;
using ExtensionsTools.Events;
...
GameEventListener.INSTANCE.OnApplicationFocused += OnFocusCallback;
Here is a list of all possible events:
Event |
---|
OnApplicationFocused |
OnApplicationQuitted |
OnApplicationPaused |
OnGUIRender |